<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Title</title>
</head>
<body>
<script src="https://unpkg.com/vue@next"></script>
<div id="event-handling">
    <p>{{message}}</p>
    <button v-on:click="reserseMessage">Reverse Message</button>
</div>

<script>
    const eventHandling = {
        data(){
            return {
                message: 'Hello Vue3'
            }
        },

        methods:{
            reserseMessage(){
                this.message = this.message.split('').reverse().join('')
            }
        }
    }

    Vue.createApp(eventHandling).mount('#event-handling')
</script>
</body>
</html>